<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in person" :key="item.id">
                姓名{{item.name}}--年龄{{item.age}}
            </li>
        </ul>
    </div>
    <script>
        new Vue({
            el:'#app',
            data(){
                return{
                    person:[
                        { id: "001", name: "laowang", age: 19 },
                        { id: "002", name: "xiaowang", age: 29 },
                        { id: "003", name: "zhongwang", age: 9 },
                    ]
                }
            }
        })
    </script>
</body>
</html>